package com.asiainfo.ssm.execute.util;


import java.util.HashMap;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.ai.appframe2.complex.cache.CacheFactory;
import com.ai.appframe2.complex.tab.split.function.IFunction;
import com.ai.common.ivalues.IBOBsStaticDataValue;
import com.ai.common.util.StaticDataUtil;
import com.asiainfo.ssm.execute.cache.ChannelCodeCacheImpl;

public class ChannelIdFunctionImpl implements IFunction {
	public static transient Log log = LogFactory.getLog(ChannelIdFunctionImpl.class);
	public String convert(Object value) throws Exception {
		String topicName = (String) CacheFactory.get(ChannelCodeCacheImpl.class,value+"");
		if(topicName != null){
			return topicName;
		}
		return value.toString();
	}

}
